package com.wenli.lt.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lt
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Goods implements Serializable {


    /**
     * 商品id
     */
    @TableId("goodsId")
    private String goodsId;

    /**
     * 商品名字
     */
    @TableField("goodsName")
    private String goodsName;

    /**
     * 发布者学号
     */
    @TableField("sellerstudentNumber")
    private String sellerstudentNumber;

    @TableField("goodsDescribe")
    private String goodsDescribe;


    /**
     * 购买时候的价格
     */
    @TableField("buyPrice")
    private BigDecimal buyPrice;

    /**
     * 现在的价格
     */
    @TableField("nowPrice")
    private BigDecimal nowPrice;

    /**
     * 是否全新 0是全新1不是
     */
    @TableField("isNew")
    private Integer isNew;

    /**
     * 是否可以讲价 0 可以 1 不可以
     */
    @TableField("isBargaining")
    private Integer isBargaining;

    /**
     * 0服装1美妆2家具3书籍4生活百货5游戏装备
     */
    @TableField("classification")
    private Integer  classification;
    @TableField("isSoldOut")
    private  Integer isSoldOut;
    @TableField("soldCount")
    private  Integer soldCount;
    @TableField("noSoldCount")
    private  Integer noSoldCount;

    @TableField("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh")
    private  Date createTime;




}
